const util = require('../../../utils/util.js');
// pages/mine/accountdetails.js
Page({
  data: {
    usermoneyinfo:'',
    loglist:'',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {
    this.getusermoneylog(); 
  },
  getusermoneylog: function () {
    let that = this;
    util.request('user/getusermoneylog').then(function (res) {
      console.log(res.data);
      if (res.errno === 0) {
        that.setData({
          usermoneyinfo: res.data.usermoneyinfo,
          loglist: res.data.loglist
        });
      }
    });
  }



})